home *** CD-ROM | disk | FTP | other *** search
- Path: hp-3.cae.wisc.edu!tuant
- From: tuant@hp-3.cae.wisc.edu (Truong Tuan)
- Newsgroups: comp.lang.c++
- Subject: [help] Calling BTRIEVE functions in C?Hello,
- Date: 4 Jan 1996 18:54:53 GMT
- Organization: University of Wisconsin, College of Engineering
- Message-ID: <4ch7pt$ut0@news.doit.wisc.edu>
- NNTP-Posting-Host: hp-3.cae.wisc.edu
-
- I am trying to integrate a DOS application to a WINDOWS application(DYNAMICS).
- To do this, I needed to be able to open DYNAMICS' files, which are BTRIEVE files.
- However, I could not open the files. Here is how I did it:
-
- ***********MyCode.C********
-
- #define BTI_DOS
- #include "btrapi.h"
-
- int main()
- {
- :
- :
- status = btrv(0,......,..); //open a btrieve file
- :
- :
- return 0;
- }
-
- **********END**********
-
- When I compile MyCode.C, using the Turbo C++(ver.4.5), everything went OK.
- However, when I selected RUN (from compiler menu bar) , I got an error message:
-
- Error: Undefine symbol BTRV(..).
-
- Questions:
-
- 1) Could it be the fact that I did not have the BTRIEVE (DOS version) running
- before I tried to run MyCode.exe? If so, how do I run BTRIEVE before
- running my program?
-
- 2) Do I need the DOS version of BTRIEVE when I already got the WINDOWS version?
-
-
- Please help! If possible, please suggest me a way to work this out.
-
- Thank you!
-
- Tuan Truong
-
-
- PS: how do I generate .OBJ files from DOS prompt? I know that I have
- include option(s) when compiling the program, but I don't see any option
- that had the capability to do that. Please help!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Keywords:
-
-